package Dao;

import java.sql.SQLException;
import java.util.List;

import entity.User;

public interface UserDao {
	//通过用户名密码类型获取用户
	public User getUser(String email, String password, Integer typeid) throws Exception;
	//通过email获取用户
	public User findByid(String email) throws Exception;
	//添加用户
	public Integer add(User u) throws Exception;
	//获取用户列表
	public List<User> getUserList() throws Exception;
	//删除用户
	public void remove(String email) throws SQLException;
	//修改用户
	boolean update(User u) throws Exception;

}
